package com.hrm.houfei.dao;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.hrm.houfei.po.Engageinforelease;

/**
 * @title  招聘信息发布dao接口
 * @author Administrator
 * @date 2009-04-18
 *
 */
public interface IEngageinforeleaseDAO {
	
	/**
	 * 多条件分页模糊查询
	 * 
	 * @param criteria
	 *            离线查询
	 * @param firstResult
	 *            索引
	 * @param maxResults
	 *            每页要显示的记录的条数
	 * @return 当前页的所有记录 List<Engageinforelease>
	 */
	public List<Engageinforelease> findAllByPageCondition(
			DetachedCriteria criteria, int firstResult, int maxResults);
	
	/**
	 * 根据条件获取查询结果的记录条数
	 * @param criteria 离线查询
	 * @return 总记录的条数(条件)
	 */
	public int getPageListCount(DetachedCriteria criteria);
	
	/**
	 * 修改Engageinforelease
	 * @param entity
	 */
	public void update(Engageinforelease entity);

	public abstract void save(Engageinforelease transientInstance);

	public abstract void delete(Engageinforelease persistentInstance);

	public abstract Engageinforelease findById(java.lang.Integer id);

	public abstract List findByExample(Engageinforelease instance);

	public abstract List findByProperty(String propertyName, Object value);

	public abstract List findAll();

	public abstract Engageinforelease merge(Engageinforelease detachedInstance);

	public abstract void attachDirty(Engageinforelease instance);

	public abstract void attachClean(Engageinforelease instance);

}